<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>{dede:field.seotitle /}-{dede:global.cfg_webname/}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link rel="canonical" href="{dede:global.cfg_basehost/}{dede:type typeid='0' row=1}[field:typelink/]{/dede:type}"/>
<link href="{dede:global.mcfg_basehost/}/m-css/m-index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{dede:global.mcfg_basehost/}/m-js/jquery.js" ></script>
<script type="text/javascript" src="{dede:global.cfg_basehost/}/system/gzs.ajax.js"></script>
<script type="text/javascript" src="{dede:global.mcfg_basehost/}/m-css/app.css.php"></script>
<script type="text/javascript">
function CheckLogintop(){
var taget_obj = document.getElementById('_userlogin');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/user/ajax_loginsta.php");
DedeXHTTP = null;
}
</script>
<style type="text/css">
.m-header .search-fl-list{height:30px;line-height:30px;margin:0 15px;background:#f0f0f0;display:block;position:relative;top:7px;border-radius:3px;color:#999;font-size:14px;padding-left:10px;}

/*加载中*/
.yxw-list-loading{width:100%;height:85px;line-height:50px;color:#757575;background:#f0f0f0;text-align:center;font-size:14px;}
.mall-totop{bottom:150px;}

/*首页导航*/
.nav{margin-bottom:10px;}
.iMenu{overflow:hidden;padding:5px 5px 0;background:#fff;}
.iMenu li{width:20%;float:left;padding-bottom:20px;}
.iMenu li a{display:block;}
.iMenu li a i{width:40px;height:40px;display:block;margin:0 auto;border-radius:50%;}
.iMenu li a i img{display:block;border-radius:50%;background:#f3f3f3;width:100%;height:100%;}
.iMenu li a span{display:block;height:30px;line-height:30px;font-size:14px;text-align:center;}
</style>
</head>
<body>
<div class="wrapper">

{dede:include filename="head_m.htm"/}

<!-- 全部分类 -->
<div class="nav">
<ul class="iMenu">
<h2 class="gzs-top-h1" style="font-size:20px;font-weight:700;color:#333;background:#fff;padding:10px 10px 15px 10px">全部分类</h2>
{dede:channel type='son' typeid='17'}<li><a href="[field:global.mcfg_basehost/][field:typelink/]"><i><img src="[field:bigpic function='mstrone(@me)'/]"></i><span>[field:typename/]</span></a></li>{/dede:channel}
</ul>
</div>
<!-- 全部分类 End -->

<h1 class="gzs-top-h1" style="font-size:20px;font-weight:700;color:#333;background:#fff;padding:15px 15px 0 15px;">全部课程</h1>

<!-- 课程列表 -->
<div class="m-header-video">
<ul class="content_list listqu">
{dede:php}
echo JJGetTypeList(1,10);
{/dede:php}
</ul>
</div>
<!-- 课程列表 End -->
<div class="yxw-list-loading tishik" page="1" pagesize="10">正在加载中...</div>

</div>

<script>
function getSubstr(ret,strs,stre)
{
var deps = ret.indexOf(strs)+strs.length;
if (stre == "")
var depe = ret.length;
else
var depe = ret.indexOf(stre);
var dep = ret.substr(deps,depe-deps);
return dep;
}
function trim(str){ 
return str.replace(/(^\s*)|(\s*$)/g, "");
}
var cha = 650;
var f = true;
var u = '';
var str = '';
var r = '';
var pagesizeV = $(".tishik").attr("pagesize");
    $(document).scroll(function(){
            //滚动条滑动的时候获取滚动条距离顶部的距离
            var scroll=$(document).scrollTop();
            //屏幕的高度
            var client=$(window).height();
            var h=$(document).height();
            var flag=true;
            if (h<=scroll+client+100) { // 到达底部时,加载新内容
if(f){
f = false;
$(".tishik").html("正在加载中...");
var pageV = $(".tishik").attr("page");
pageV = parseInt(pageV) + 1 ;
$.post("{dede:global.mcfg_basehost/}/apps/jjajax.php",{a:"GetPage",page:pageV,pagesize:pagesizeV},function(result){
  $(".tishik").attr("page",pageV);
  if(result==''){
  $(".tishik").html("已经全部加载完毕");
  return;
  }else{
  $(".listqu").append(result);
  init_app_alink();
  f = true;
  }     
});    
}
}
});
</script>

<!-- 返回顶部 -->
<div class="mall-totop" onclick="window.scrollTo(0,0);"></div>
<script src="{dede:global.mcfg_basehost/}/m-js/mall-top.js"></script>
<!-- 返回顶部 End -->

{dede:php}
require_once(DEDEMEMBER."/config.php");
$uid = $cfg_ml->M_LoginID;
if(!$uid){
echo '<div class="bottom-box"><div class="bottom-yu">'.$cfg_waploginyu.'<a href="'.$mcfg_basehost.'/user/">立即登录</a><div class="close"></div></div></div>';
}else{
echo ' ';
}
{/dede:php}

<!-- 最底部导航 -->
<div class="gzs-bottombar">
<a href="{dede:global.mcfg_basehost/}/" class="gzs-bo"><img src="{dede:global.mcfg_basehost/}/m-images/index.png"><p>首页</p></a>
<a href="{dede:global.mcfg_basehost/}/user/buyhui.php" class="gzs-bo"><img src="{dede:global.mcfg_basehost/}/m-images/index-ke.png"><p>会员</p></a>
<a href="{dede:global.mcfg_basehost/}/user/operation_ke.php" class="gzs-bo"><img src="{dede:global.mcfg_basehost/}/m-images/index-yg.png"><p>学习</p></a>
<a href="{dede:global.mcfg_basehost/}/user/" class="gzs-bo"><img src="{dede:global.mcfg_basehost/}/m-images/index-admin.png"><p>我的</p></a>
</div>
<!-- 最底部导航 End -->

{dede:include filename="kc_search_m.htm"/}
{dede:include filename="wz-tongji.htm"/}

<script type="text/javascript">
$(function(){
setTimeout(function(){
$(".bottom-box").slideDown("slow"); },500);
$(".close").click(function(){
$(".bottom-box").hide();	
})
});
</script>

</body>
</html>